package com.kokomi.DeadLetter_model;

import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class DeadLetterTest {

    @Autowired
    RabbitTemplate rabbitTemplate;

    //发送正常消息
    @Test
    public void testDeadLetter() {
        rabbitTemplate.convertAndSend("normal.exchange", "city.gz", "波多野结衣");
    }
}
